package com.linxianqin.springbootVue.controller.monitor;

import com.linxianqin.springbootVue.domain.model.AjaxResult;
import com.linxianqin.springbootVue.service.webService.ServerService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lxq
 * @version 1.0
 * @description: 服务器监控
 * @date 2020/12/28 16:22
 */
@RestController
@RequestMapping("/monitor/server")
public class ServerController
{
    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping()
    public AjaxResult getInfo() throws Exception
    {
        ServerService serverService = new ServerService();
        serverService.copyTo();
        return AjaxResult.success(serverService);
    }
}
